EnvironmentObject Class Reference

#include <EnvironmentObject.h>

Inheritance diagram for EnvironmentObject:

TraffEduObject List of all members.

Public Member Functions

 EnvironmentObject ()
 EnvironmentObject (string pathname, float scale)
void draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)

Detailed Description

A class to implement one type of TraffEduObject, that is EnvironmentObject.


Constructor & Destructor Documentation

EnvironmentObject::EnvironmentObject (   ) 
 

Default constructor.

EnvironmentObject::EnvironmentObject (  string  pathname,
float  scale
) 
 

A constructor.

Parameters:
pathname string argument defining path name.
scale is a float argument defining scale factor of the vehicle model. initalize path and scale factor of the object model.


Member Function Documentation

void EnvironmentObject::draw (  osg::ref_ptr< osg::Group >  root,
int  animationFlag = -1
)  [virtual]
 

a normal member taking two arguments.

Parameters:
root is an osg::ref_ptr to osg::Group which the model node will be added.
animationFlag is an integer flag to specify whether the root is animation window root or not. this function adds the object model node to the root.

Implements TraffEduObject.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO